﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace automata
{
    public partial class Mode : Form
    {
        public Mode()
        {
            InitializeComponent();
        }

        private void Mode_Load(object sender, EventArgs e)
        {

        }


        public void login(string pin,string id,ref bool b)
        {

         

            if (pin == id)
            {

                b=true;
            }

            else
            {
                MessageBox.Show("Wrong PIN Code");
                b = false;
            }

        }


       public void logout(ref int delete_1, ref int delete_2, ref int delete_3,  ref int delete_4,  ref int delete_5)
        {
            delete_1 = 0;
            delete_2 = 0;
            delete_3 = 0;
            delete_4 = 0;
            delete_5 = 0;


        }

       public void takeCash()
       {
           take_cash take = new take_cash();

           take.ShowDialog();
       }

       public void balance(int cash)
       {
           MessageBox.Show("Your cash :     " + cash);
           

       }


    }
}
